package com.shujia.day07;

class Fu {
    public void show() {
        System.out.println("fu show");
    }
}
class Zi extends Fu {
    public void show() {
        System.out.println("zi show");
    }

    public void method() {
        System.out.println("zi method");
    }
}
class Test1 {
    public static void main(String[] args) {
        Fu f = new Zi();
        //f.method(); // 报错的原因是多态访问成员方法的特点是编译看左运行看右，父类中没有该方法
    }
}
